//
//  LSZAttentionFansManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/8/31.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZAttentionFansManager.h"

@implementation LSZAttentionFansManager
-(id)initWithAttentionFans :(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.arrayData = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        NSMutableArray * mutArray = [[NSMutableArray alloc]init];
        for (NSDictionary * diction in arrayData) {
            LSZAttentionFansMg * manager = [[LSZAttentionFansMg alloc]init];
            manager.username = NullStringjudgment(NSStr(diction[@"user"][@"username"]));
            manager.gender = NullStringjudgment(NSStr(diction[@"user"][@"gender"]));
            manager.location = NullStringjudgment(NSStr(diction[@"user"][@"location"]));
            manager.avatar = NullStringjudgment(NSStr(diction[@"user"][@"avatar"]));
            manager.uid = NullStringjudgment(NSStr(diction[@"user"][@"uid"]));
            manager.tuid = NullStringjudgment(NSStr(diction[@"tuid"]));
            manager.fuid = NullStringjudgment(NSStr(diction[@"fuid"]));
            manager.id_id = NullStringjudgment(NSStr(diction[@"id"]));
            manager.is_follow = NullStringjudgment(NSStr(diction[@"is_follow"]));
            [mutArray addObject:manager];
        }
        self.arrayData = mutArray;
    }
    return self;
}
@end
@implementation LSZAttentionFansMg
@end
